.pro-data-statistic-summary-card-list {
  display: flex;

  .#{componentName(grid-col)} {
    position: relative;
  }

  .pro-data-statistic-summary-card {
    background-color: plv(bg-2);
    box-shadow: plv(box-shadow);

    .pro-data-statistic-summary-card-title {
      display: flex;
      justify-content: space-between;
      align-items: center;
      color: plv(text-2);

      & > .pl-icon {
        cursor: pointer;
        color: plv(text-4);

        &:hover {
          color: plv(primary-6);
        }
      }
    }

    .pro-data-statistic-summary-card-result {
      letter-spacing: 1px;
      color: plv(text-1);
    }

    .pro-data-statistic-summary {
      position: relative;

      &:after {
        position: absolute;
        top: 0;
        content: '';
        height: 1px;
        background-color: plv(border-color);
      }
    }

    .pro-data-statistic-sales-info {
      display: flex;
      color: plv(text-2);
      box-sizing: border-box;
    }

    .pro-data-statistic-chart-el {
      width: 100%;
    }
  }
}

.pro-data-statistic-head {
  background-color: plv(bg-2);
  display: flex;
  align-items: center;
  border-bottom: 1px solid plv(border-color);

  .pro-data-statistic-head-space {
    flex: 1;
  }

  .pro-data-statistic-head-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background-color: plv(primary-light-2);
    color: plv(primary-6);

    .pro-data-statistic-head-icon-background {
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      border-radius: 2px;
      opacity: 0.1;
    }
  }
}

.app-container {
  @include sizeMixin(app-container, ()) {
    .pro-data-statistic-summary-card-list {

      .pro-data-statistic-summary-card {
        border-radius: $border-radius;
        padding: $margin $margin 0 $margin;

        .pro-data-statistic-summary-card-title {
          font-size: $font-size;
        }

        .pro-data-statistic-summary-card-result {
          font-size: calc(#{$font-size} * 2);
          margin: $margin 0;
        }

        .pro-data-statistic-summary {
          margin-top: $margin;
          padding: $margin 0;
          font-size: $font-size;

          &:after {
            left: calc(#{$margin} * -1);
            right: calc(#{$margin} * -1);
          }
        }

        .pro-data-statistic-sales-info {
          font-size: $font-size;
          padding-top: $margin;
          height: calc(#{$font-size} * 2);

          & > div {
            margin-right: $margin;

            & > span:first-child {
              margin-right: calc(#{$margin} / 2);
            }
          }
        }

        .pro-data-statistic-chart-el {
          height: calc(#{$font-size} * 2);
        }
      }
    }
  }
}

.app-container {
  @include sizeMixin(app-container, ()) {
    .pro-data-statistic-head {
      padding: $margin;
      font-size: $font-size;

      .pro-data-statistic-head-icon {
        height: 1.8em;
        width: 1.8em;
        margin-right: $margin;
        border-radius: $border-radius;
      }
    }
  }
}
